package kr.pe.mybjj;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class QnASearch {

	public ArrayList<QnADTO> execute(HttpServletRequest request, HttpServletResponse response)
	{
		String searchType = request.getParameter("searchtype");
		String searchValue = request.getParameter("searchdata");
		
		System.out.println(searchType);
		System.out.println(searchValue);

		QnADAO dao = new QnADAO();
		return dao.search(searchType, searchValue);
	}
}
